package com.cqut.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cqut.model.EvaluationEd;

public interface EvaluationEdMapper {
    int deleteByPrimaryKey(@Param("evaluationId") String evaluationId);

    int deleteByPrimaryKeys(@Param("primaryKeys") String[] primaryKeys);

    int insert(EvaluationEd record);

    int insertSelective(EvaluationEd record);

    EvaluationEd selectByPrimaryKey(@Param("evaluationId") String evaluationId);

    int updateByPrimaryKeySelective(EvaluationEd record);

    int updateByPrimaryKey(EvaluationEd record);

    List<EvaluationEd> loadModels(@Param("parameters") String parameters, @Param("condition") String condition, @Param("order") String order, @Param("sort") String sort, @Param("offset") int offset, @Param("limit") int limit);

    List<Map<String, Object>> loadMaps(@Param("parameters") String parameters, @Param("condition") String condition, @Param("order") String order, @Param("sort") String sort, @Param("offset") int offset, @Param("limit") int limit);

    long count(@Param("parameters") String parameters, @Param("condition") String condition, @Param("isDistinct") boolean isDistinct);

    EvaluationEd findModel(@Param("evaluationId") String evaluationId, @Param("parameters") String parameters);

    Map<String, Object> findMap(@Param("evaluationId") String evaluationId, @Param("parameters") String parameters);

	List<Map<String, Object>> getListByEditionName(
			@Param("editionName")
			String editionName,
			@Param("start")
			int start,
			@Param("end")
			int end);

	long getCountByEditionName(
			@Param("editionName")
			String editionName);
	
	String getNameByUserId(
			@Param("createrId")
			String createrId);

	int addNewVersion(EvaluationEd evaluationEd);

	Map<String, Object> getMaxEvaluationId();

	Map<String, Object> getEvaluationById(String evaluationId);

		
}
